package com.mzy.olddate.date20211028;

import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author Ives
 * * @date 2021/10/28
 */
public class Demo {
  public static void main(String[] args) {
    String s = "010040,010040050,010040060,010040090,010500,010500010,010500080,010500090,010500200,020990530,020990880,020990890,020990860,020990920,020990940,020990960,020990990350,020990990400,020990990010,020990990420,020990990,020990990020,020990980,020990870,020990420,020990990230,020990990300,020990340,020990810,020990830,020990990190,020990990200,020990240,020990110,020990990060,020990990550,020990990560,020990990570,020990990580,020990250,020990050,020990990270,020990990280,020990380,020990990670,020990120,020990080,020990040,020990990710,020990390,020990990640,020990990650,020990220,020990990100,020990990290,020830,020840,020990990470,020990990480,020990990500,020990990510,020990990360,020990990390,020990820,020990470,020990490,020990990170,020990990660,020990710,020990990600,020990600,020990650,020990840,020990150,020990370,020990160,020990730,020990740,020990770,020820,020950,020990280,020990990630,020990990520,020990410,020990480,020990850,020990990080,020990990110,020990990160,020990990430,020990300,020990590,020990780,020990800,020990290,020990310,020990990150,020990430,020990690,020990130,020990990540,020990990260,020990990250,020990990070,020990360,020990460,020990990610,020990990620,020990140,020990440,020990450,020990270,020990610,020990990320,020990750,020990990180,020990990490,020990990590,020990990330,020990990340,020990060,020990070,020990910,020990930,020990950,020990990700,020990970,020990990240,020990990720,020990990730,020990990090,020990640,020990700,020990760,020990660,020990200,020990670,020990680,020990190,020990330,020990620,020990720,020990560,020990630,020990900,020990990210,020990990220,020990990030,020990990040,020990990050,020990990440,020990260,020990990530,020990990120,020990990130,020990990140,020990990450,020990990460,020990990680,020990990690,020990010,020990990410,020990170,020990180,020990320,020990210,020990400,020990020,020990030,020990090,020990990310,020990230,020990790,020930,020940,020960,020130990910010010020060,020130990910010010020040,020130990910010010020090,020130990910010010020050,020990990900,020990990770";
    String[] split = s.split(",");
    List<String> strings = Arrays.asList(split);
    List<String> collect = strings.stream().sorted(Comparator.naturalOrder()).collect(Collectors.toList());
    System.out.println(collect);
  }
}
